<%--
  Created by IntelliJ IDEA.
  User: 19111
  Date: 2024/9/15
  Time: 22:24
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>login</title>
</head>
<body>
    <p>${msg}</p>
    <form action="userServlet" method="post">

        账号：<input type="text" name="account"><br>
        密码：<input type="password" name="password"><br>
        <input type="submit" value="登录">
        <input type="button" id="registerButton" value="注册">
    </form>
    </header>

    <script>
    document.getElementById('registerButton').addEventListener('click', function() {
        window.location.href = 'register.jsp';
    });
    </script>
</body>
</html>
